We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6daaad commit edc16a2Copy full SHA for edc16a2
LanguageFeatures/Patterns/variable_A02_t06.dart
@@ -36,12 +36,13 @@ import "patterns_lib.dart";
36
String test1(Shape shape) {
37
switch (shape) {
38
case Square(area: double d1):
39
+ d1.expectStaticType<Exactly<double>>();
40
return "Square(area: double $d1)";
41
case Square(area: Unit a):
42
a.expectStaticType<Exactly<Unit>>();
43
return "Square(area: $a)";
44
case Circle(size: double d2):
- b.expectStaticType<Exactly<Unit>>();
45
+ d2.expectStaticType<Exactly<double>>();
46
return "Circle(size: double $d2)";
47
case Circle(size: Unit b):
48
b.expectStaticType<Exactly<Unit>>();
0 commit comments