Browse Source

test for #5205 (closes #5205)

Aleksandr Kuzmenko 6 years ago
parent
commit
9af9bd560d

+ 9 - 0
tests/misc/projects/Issue5205/Main.hx

@@ -0,0 +1,9 @@
+class Main {
+	static public function main() {}
+}
+
+abstract Val<T>(T) from Int {
+	public inline function new(v:T)
+		this = v;
+	public inline function value():T return this;
+}

+ 1 - 0
tests/misc/projects/Issue5205/compile-fail.hxml

@@ -0,0 +1 @@
+-main Main

+ 1 - 0
tests/misc/projects/Issue5205/compile-fail.hxml.stderr

@@ -0,0 +1 @@
+Main.hx:5: characters 25-28 : You can only declare from/to with compatible types