7d8fe13b6c
This implements the constraint that a type imported with a deferred import cannot be used in type annotations in the importing module. They can still be used in new-expressions. A violation will trigger a warning, and replace the type with a MalformedType. Was reverted by: Issue 185053005 r33277 R=floitsch@google.com, johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=33273 Review URL: https://codereview.chromium.org//177543002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33417 260f80e4-7a28-3924-810f-c04153c831b5
6 lines
230 B
Dart
6 lines
230 B
Dart
// Copyright (c) 2014, 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.
|
|
|
|
foo() => 24;
|