Skip to content

Commit 958b540

Browse files
authored
Merge pull request flutter#7 from dart-lang/dart2-fix
Fix a Dart 2 runtime error in a test
2 parents 83b690b + 96c1c71 commit 958b540

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/evaluate_test.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ void main() {
3636
});
3737

3838
test("with a semantics function", () {
39-
_expectEval("foo", false, semantics: (variable) => variable.contains("a"));
40-
_expectEval("bar", true, semantics: (variable) => variable.contains("a"));
41-
_expectEval("baz", true, semantics: (variable) => variable.contains("a"));
39+
_expectEval("foo", false,
40+
semantics: (String variable) => variable.contains("a"));
41+
_expectEval("bar", true,
42+
semantics: (String variable) => variable.contains("a"));
43+
_expectEval("baz", true,
44+
semantics: (String variable) => variable.contains("a"));
4245
});
4346
}
4447

0 commit comments

Comments
 (0)