Index: pkg/compiler/lib/src/typechecker.dart |
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart |
index a4478e7bf384d9be3ab9f67e30c5d66ba1e76433..6f4f91efd8467aabe3c837039bee60237b527a88 100644 |
--- a/pkg/compiler/lib/src/typechecker.dart |
+++ b/pkg/compiler/lib/src/typechecker.dart |
@@ -25,12 +25,12 @@ import 'elements/elements.dart' |
EnumConstantElement, |
ExecutableElement, |
FieldElement, |
+ FormalElement, |
FunctionElement, |
GetterElement, |
InitializingFormalElement, |
LibraryElement, |
MemberSignature, |
- ParameterElement, |
ResolvedAst, |
SetterElement, |
TypeDeclarationElement, |
@@ -654,7 +654,7 @@ class TypeCheckerVisitor extends Visitor<ResolutionDartType> { |
type = const ResolutionDynamicType(); |
returnType = const ResolutionVoidType(); |
- element.functionSignature.forEachParameter((ParameterElement parameter) { |
+ element.functionSignature.forEachParameter((FormalElement parameter) { |
if (parameter.isInitializingFormal) { |
InitializingFormalElement fieldParameter = parameter; |
checkAssignable(parameter, parameter.type, |
@@ -1685,7 +1685,7 @@ class TypeCheckerVisitor extends Visitor<ResolutionDartType> { |
/** Dart Programming Language Specification: 11.10 Return */ |
visitReturn(Return node) { |
if (identical(node.beginToken.stringValue, 'native')) { |
- return; |
+ return null; |
} |
final Node expression = node.expression; |