mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 23:31:42 +00:00
9ca0d26744
Fixes #34489. Change-Id: I7dca72366dd9259e6a0f39aaa07202943eb9f54d Reviewed-on: https://dart-review.googlesource.com/c/81180 Commit-Queue: Paul Berry <paulberry@google.com> Auto-Submit: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
12 lines
313 B
Dart
12 lines
313 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 file.
|
|
|
|
class C<T> {
|
|
var field = T;
|
|
}
|
|
|
|
main() {
|
|
new C().field = 'bad'; //# 01: compile-time error
|
|
}
|