File tree 2 files changed +4
-4
lines changed
ql/test/library-tests/standalone/brokentypes
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static bool ConstructedOrParentIsConstructed(INamedTypeSymbol symbol)
26
26
}
27
27
28
28
/// <summary>
29
- /// Returns true in case we suspect this is broken type.
29
+ /// Returns true in case we suspect this is a broken type.
30
30
/// </summary>
31
31
/// <param name="symbol">Type symbol</param>
32
32
private bool IsBrokenType ( ITypeSymbol symbol )
@@ -38,8 +38,8 @@ private bool IsBrokenType(ITypeSymbol symbol)
38
38
return false ;
39
39
}
40
40
41
- // (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.
41
+ // (1) public class { ... } is a broken type as it doesn't have a name.
42
+ // (2) public class var { ... } is an allowed type, but it overrides the ` var` keyword for all uses.
43
43
// It is probably a better heuristic to treat it as a broken type.
44
44
return string . IsNullOrEmpty ( symbol . Name ) || symbol . Name == "var" ;
45
45
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static void Main()
18
18
string y1 = x1 . Prop ;
19
19
20
20
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`.
22
22
23
23
C2 x3 = new C2 ( ) ; // Unknown type.
24
24
var y3 = x3 . Prop ; // Unknown property of unknown type.
You can’t perform that action at this time.
0 commit comments