Index: pkg/compiler/lib/src/kernel/task.dart |
diff --git a/pkg/compiler/lib/src/kernel/task.dart b/pkg/compiler/lib/src/kernel/task.dart |
index 43fc2e985203db80f03104adb67c5aa7ad9fd509..81637a231bf6d201a54ecc5e7dd3391bd65332b8 100644 |
--- a/pkg/compiler/lib/src/kernel/task.dart |
+++ b/pkg/compiler/lib/src/kernel/task.dart |
@@ -37,10 +37,8 @@ class KernelTask extends CompilerTask { |
/// |
/// May enqueue more elements to the resolution queue. |
ir.Program buildProgram(LibraryElement library) { |
- var main = library.findExported(Identifiers.main); |
+ MethodElement main = library.findExported(Identifiers.main); |
if (main == null) { |
- // TODO(johnniwinther): Issue 29844. |
- // ignore: INVALID_ASSIGNMENT |
main = _compiler.frontendStrategy.commonElements.missingMain; |
} |
return new ir.Program( |