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

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

Issue 11125005: Support for type dynamic in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tests/language/pseudo_kw_test.dart ('k') | tests/language/type_cast_vm_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test that setters cannot have defined, non-void return types. 5 // Test that setters cannot have defined, non-void return types.
6 // Note: The language specification specifies the absence of a type means 6 // Note: The language specification specifies the absence of a type means
7 // it is dynamic, however you cannot specify dynamic. 7 // it is dynamic, however you cannot specify dynamic.
8 8
9 class A { 9 class A {
10 set foo(x) {} 10 set foo(x) {}
11 void set bar(x) {} 11 void set bar(x) {}
12 Dynamic set baz(x) {} /// 01: static type warning 12 dynamic set baz(x) {} /// 01: static type warning
13 bool set bob(x) {} /// 02: static type warning 13 bool set bob(x) {} /// 02: static type warning
14 } 14 }
15 15
16 main() { 16 main() {
17 new A(); 17 new A();
18 } 18 }
OLDNEW
« no previous file with comments | « tests/language/pseudo_kw_test.dart ('k') | tests/language/type_cast_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698