f541f060ee
This adds checks for allocations and type values, and provides a compile time error for type declarations, is-checks, and as-casts. Change-Id: I3bfed41b0dd45abeb02158f0537102c779511998 Reviewed-on: https://dart-review.googlesource.com/36383 Commit-Queue: Sigmund Cherem <sigmund@google.com> Reviewed-by: Peter von der Ahé <ahe@google.com>
13 lines
309 B
Dart
13 lines
309 B
Dart
// Copyright (c) 2018, 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.md file.
|
|
|
|
dynamic m(x) => null;
|
|
|
|
var x = 0;
|
|
|
|
class C {
|
|
static int y = 1;
|
|
static int m() => 2;
|
|
}
|