blob: a43fb56403fc54e151b038dfb0c1325400c39c5f [file]
// Copyright (c) 2017, 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.
library test;
class C<T> {
T t;
C(this.t);
}
test(dynamic y) {
var x = new C(42);
C<int> c_int = new C(/*info:DOWN_CAST_IMPLICIT*/ y);
C<num> c_num = new C(123);
// Don't infer from explicit dynamic.
var c_dynamic = new C<dynamic>(42);
}