Skip to content

Commit edc16a2

Browse files
authored
Fixes #1701. variable_A02_t06.dart. Fix typos (#1727)
1 parent e6daaad commit edc16a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LanguageFeatures/Patterns/variable_A02_t06.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ import "patterns_lib.dart";
3636
String test1(Shape shape) {
3737
switch (shape) {
3838
case Square(area: double d1):
39+
d1.expectStaticType<Exactly<double>>();
3940
return "Square(area: double $d1)";
4041
case Square(area: Unit a):
4142
a.expectStaticType<Exactly<Unit>>();
4243
return "Square(area: $a)";
4344
case Circle(size: double d2):
44-
b.expectStaticType<Exactly<Unit>>();
45+
d2.expectStaticType<Exactly<double>>();
4546
return "Circle(size: double $d2)";
4647
case Circle(size: Unit b):
4748
b.expectStaticType<Exactly<Unit>>();

0 commit comments

Comments
 (0)