Chromium Code Reviews| Index: lib/compiler/implementation/resolver.dart |
| =================================================================== |
| --- lib/compiler/implementation/resolver.dart (revision 12600) |
| +++ lib/compiler/implementation/resolver.dart (working copy) |
| @@ -2615,6 +2615,9 @@ |
| new SourceString(fullConstructorName), |
| MessageKind.CANNOT_FIND_CONSTRUCTOR, |
| [fullConstructorName]); |
| + } else if (inConstContext && |
|
ahe
2012/09/21 11:52:21
This isn't right.
ngeoffray
2012/09/21 12:27:30
Added a couple of TODOs.
|
| + (result.modifiers == null || !result.modifiers.isConst())) { |
| + error(diagnosticNode, MessageKind.CONSTRUCTOR_IS_NOT_CONST); |
| } |
| return result; |
| } |