blob: e30f4e00fd50bf7124c6cc72712b928eed5c5afc [file] [log] [blame]
// 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.
/// @assertion The static type of a double valued integer literal is [double]
/// @description Checks that the static type of a double valued integer literal
/// is [double]. Test super assignment expression
/// @author sgrekhov@unipro.ru
class A {
double? m1;
void set instanceSetter(double val) {
m1 = val;
}
}
class C extends A {
test() {
super.m1 = 42;
super.m1 = (1 > 0 ? 42 : 3.14);
super.m1 = (null ?? 42);
super.m1 ??= 42;
super.instanceSetter = 42;
}
}
main() {
C c = C();
c.test();
}