553ac951b3
Change-Id: I5d4c0b4d15a05cfc30d87003785ca841c46b1a0f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426583 Reviewed-by: Stephen Adams <sra@google.com>
26 lines
1.0 KiB
Dart
26 lines
1.0 KiB
Dart
// Copyright (c) 2021, 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 X {
|
|
/*member: X.a:Union([exact=JSExtendableArray|powerset={I}{G}{M}], [exact=JSString|powerset={I}{O}{I}], powerset: {I}{GO}{IM})*/
|
|
final dynamic a;
|
|
|
|
/*member: X.:[exact=X|powerset={N}{O}{N}]*/
|
|
X(
|
|
Object /*Union([exact=JSExtendableArray|powerset={I}{G}{M}], [exact=JSString|powerset={I}{O}{I}], powerset: {I}{GO}{IM})*/
|
|
value,
|
|
) : assert(value is String),
|
|
a = value;
|
|
}
|
|
|
|
/*member: main:[null|powerset={null}]*/
|
|
main() {
|
|
X('a')
|
|
. /*[exact=X|powerset={N}{O}{N}]*/ a
|
|
. /*Union([exact=JSExtendableArray|powerset={I}{G}{M}], [exact=JSString|powerset={I}{O}{I}], powerset: {I}{GO}{IM})*/ length;
|
|
X([1])
|
|
. /*[exact=X|powerset={N}{O}{N}]*/ a
|
|
. /*Union([exact=JSExtendableArray|powerset={I}{G}{M}], [exact=JSString|powerset={I}{O}{I}], powerset: {I}{GO}{IM})*/ length;
|
|
}
|