ec3dd52462
This makes fixes to analyzer and update the test for updated spec. Change-Id: Ie5222bcf9056d5cbb7f18437dec04d5af21ff314 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143245 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
19 lines
682 B
Dart
19 lines
682 B
Dart
// Copyright (c) 2012, 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.
|
|
// Test explicit import of dart:core in the source code..
|
|
|
|
library DynamicPrefixCoreTest.dart;
|
|
|
|
import "package:expect/expect.dart";
|
|
import "dart:core" as mycore;
|
|
|
|
void main() {
|
|
// The built-in type declaration `dynamic`, which is declared in the
|
|
// library `dart:core`, denotes the `dynamic` type. So, in this library
|
|
// it must be reference with the prefix.
|
|
dynamic; //# 01: compile-time error
|
|
|
|
Expect.isTrue(mycore.dynamic is mycore.Type); //# 02: ok
|
|
}
|