File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
ql/test/library-tests/standalone/brokentypes Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ private bool IsBrokenType(ITypeSymbol symbol)
3939 }
4040
4141 // (1) public class { ... } is a broken type and doesn't have a name.
42- // (2) public class var { ... } is a an allowed type, but it overrides the var keyword for all uses.
42+ // (2) public class var { ... } is an allowed type, but it overrides the ` var` keyword for all uses.
4343 // It is probably a better heuristic to treat it as a broken type.
4444 return string . IsNullOrEmpty ( symbol . Name ) || symbol . Name == "var" ;
4545 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void Main()
1818 string y1 = x1 . Prop ;
1919
2020 var x2 = new C ( ) ; // Has type `var` as this overrides the implicitly typed keyword `var`.
21- var y2 = x2 . Prop ; // Unknown type as `x2` har type `var`.
21+ var y2 = x2 . Prop ; // Unknown type as `x2` has type `var`.
2222
2323 C2 x3 = new C2 ( ) ; // Unknown type.
2424 var y3 = x3 . Prop ; // Unknown property of unknown type.
You can’t perform that action at this time.
0 commit comments