Browse Source

Merge pull request #3106 from back2dos/patch-1

Handle abstracts in ExampleJsGenerator::getType.
Dan Korostelev 11 years ago
parent
commit
04bcfa938b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/haxe/macro/ExampleJSGenerator.hx

+ 1 - 0
std/haxe/macro/ExampleJSGenerator.hx

@@ -49,6 +49,7 @@ class ExampleJSGenerator {
 		return switch(t) {
 		return switch(t) {
 			case TInst(c, _): getPath(c.get());
 			case TInst(c, _): getPath(c.get());
 			case TEnum(e, _): getPath(e.get());
 			case TEnum(e, _): getPath(e.get());
+			case TAbstract(a, _): getPath(a.get());
 			default: throw "assert";
 			default: throw "assert";
 		};
 		};
 	}
 	}