mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:41:19 +00:00
1f8f38f953
Review URL: https://codereview.chromium.org//118313002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31228 260f80e4-7a28-3924-810f-c04153c831b5
22 lines
709 B
Dart
22 lines
709 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
class Foo<T> {}
|
|
|
|
var a = [new Object(), 42];
|
|
|
|
main() {
|
|
while (false) { // Comply to inlining heuristics.
|
|
// Use an unresolved prefix.
|
|
var foo = Unresolved.foo( /// 01: static type warning
|
|
// Make dart2js generate a call to setRuntimeTypeInfo.
|
|
new Foo<int>(), /// 01: continued
|
|
// Use a one-shot interceptor.
|
|
a[0].toString()); /// 01: continued
|
|
|
|
// Do an is test on `Foo` to require setRuntimeTypeInfo.
|
|
print(foo is Foo<int>); /// 01: continued
|
|
}
|
|
}
|