Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tests/language/super_no_such_method3_test.dart

Issue 1678053002: Fix super noSuchMethod handling. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:expect/expect.dart';
6
7 var result;
8
9 class A {
10 noSuchMethod(im) {
11 result = 42;
12 }
13 }
14
15 class B extends A {
16 noSuchMethod(im) {
17 result = 87;
18 }
19
20 set foo(v) => super.foo = v; /// 01: static type warning
21 }
22
23 main() {
24 new B().foo = 0; /// 01: continued
25 Expect.equals(42, result); /// 01: continued
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698