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

Side by Side Diff: frog/tests/leg_only/src/GenericsIsCheck1Test.dart

Issue 10232011: Implement simple dynamic type check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor edits. Created 8 years, 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
kasperl 2012/04/30 08:48:32 Maybe rename this file? Didn't Siggi change the na
karlklose 2012/05/01 11:20:55 Done.
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 // Test that parameters keep their names in the output.
kasperl 2012/04/30 08:48:32 Not sure I understand line 4 here. Get rid of it?
ngeoffray 2012/04/30 08:51:12 Update comment.
karlklose 2012/05/01 11:20:55 Done, removed.
5
6 class Hest<X> {}
7
8 main() {
9 var x = new Hest<int>();
10 Expect.isTrue(x is Hest<int>);
kasperl 2012/04/30 08:48:32 So would 'x is Hest<num>', 'x is Hest<Object>', 'x
karlklose 2012/05/01 11:20:55 It does not work currently.
11 Expect.isFalse(x is Hest<String>);
12 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698