| Index: compiler/java/com/google/dart/compiler/DartCompiler.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 12499)
|
| +++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
|
| @@ -864,6 +864,13 @@
|
| srcCode += "\nvoid " + Elements.ASSERT_FUNCTION_NAME + "(x) {}";
|
| }
|
|
|
| + // inject "Type" type from 1.0 M1 specification
|
| + // remove once it will be added into SDK
|
| + // http://code.google.com/p/dart/issues/detail?id=3368
|
| + if (dartSrc.getUri().toString().equals("dart://core/object.dart")) {
|
| + srcCode += "\nclass Type {}";
|
| + }
|
| +
|
| DartParser parser = new DartParser(dartSrc, srcCode, diet, libraryPrefixes, context,
|
| context.getCompilerMetrics());
|
| DartUnit unit = parser.parseUnit();
|
|
|