blob: 45aed3c6294985781cb6ce9837e9cccd46d5d686 [file] [log] [blame]
// 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}], [exact=JSString|powerset={I}], powerset: {I})*/
final dynamic a;
/*member: X.:[exact=X|powerset={N}]*/
X(
Object /*Union([exact=JSExtendableArray|powerset={I}], [exact=JSString|powerset={I}], powerset: {I})*/
value,
) : assert(value is String),
a = value;
}
/*member: main:[null|powerset={null}]*/
main() {
X('a')
. /*[exact=X|powerset={N}]*/ a
. /*Union([exact=JSExtendableArray|powerset={I}], [exact=JSString|powerset={I}], powerset: {I})*/ length;
X([1])
. /*[exact=X|powerset={N}]*/ a
. /*Union([exact=JSExtendableArray|powerset={I}], [exact=JSString|powerset={I}], powerset: {I})*/ length;
}