|
@@ -16,6 +16,21 @@ private extern class Lib {
|
|
|
js.Syntax.code("function ___hx_returnTrue() { return true; }");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+#elseif python
|
|
|
+
|
|
|
+@:native("")
|
|
|
+private extern class Ext {
|
|
|
+ static public function len(s:String):Int;
|
|
|
+}
|
|
|
+
|
|
|
+#elseif php
|
|
|
+
|
|
|
+@:native("")
|
|
|
+private extern class Ext {
|
|
|
+ static public function strlen(s:String):Int;
|
|
|
+}
|
|
|
+
|
|
|
#end
|
|
|
|
|
|
class Issue6448 extends unit.Test {
|
|
@@ -28,5 +43,17 @@ class Issue6448 extends unit.Test {
|
|
|
function ___hx_returnTrue() return false;
|
|
|
t(Lib.returnTrue());
|
|
|
}
|
|
|
+
|
|
|
+ #elseif python
|
|
|
+
|
|
|
+ function test() {
|
|
|
+ eq(4, Ext.len('1234'));
|
|
|
+ }
|
|
|
+
|
|
|
+ #elseif php
|
|
|
+
|
|
|
+ function test() {
|
|
|
+ eq(4, Ext.strlen('1234'));
|
|
|
+ }
|
|
|
#end
|
|
|
}
|