@@ -49,11 +49,27 @@ def test_update_data(self) -> None:
4949 s: str = 'foo' # W: foo \
5050 # N: bar
5151
52+ [case testIndentationOfMultiline]
53+ s: str = 42; i: int = 'foo' # E: Incompatible types in assignment (expression has type "int", variable has type "str")\
54+ # E: Incompatible types in assignment (expression has type "int", variable has type "str")
55+ s2: str = 42; i2: int = 'foo' # E: Incompatible types in assignment (expression has type "int", variable has type "str")\
56+ # E: Incompatible types in assignment (expression has type "int", variable has type "str")
57+
5258 [case testOutCorrect]
5359 s: str = 42
5460 [out]
5561 main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
5662
63+ [case testOutWithMuchTraillingWhitespace]
64+ s: str = 42
65+ [out]
66+ main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
67+
68+
69+
70+
71+
72+
5773 [case testOutWrong]
5874 s: str = 42
5975 [out]
@@ -105,11 +121,27 @@ def test_update_data(self) -> None:
105121 [case testExtraneousMultilineNonError]
106122 s: str = 'foo'
107123
124+ [case testIndentationOfMultiline]
125+ s: str = 42; i: int = 'foo' # E: Incompatible types in assignment (expression has type "int", variable has type "str") \
126+ # E: Incompatible types in assignment (expression has type "str", variable has type "int")
127+ s2: str = 42; i2: int = 'foo' # E: Incompatible types in assignment (expression has type "int", variable has type "str") \
128+ # E: Incompatible types in assignment (expression has type "str", variable has type "int")
129+
108130 [case testOutCorrect]
109131 s: str = 42
110132 [out]
111133 main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
112134
135+ [case testOutWithMuchTraillingWhitespace]
136+ s: str = 42
137+ [out]
138+ main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
139+
140+
141+
142+
143+
144+
113145 [case testOutWrong]
114146 s: str = 42
115147 [out]
0 commit comments