Skip to content

Commit ad0ba2a

Browse files
author
Guido van Rossum
committed
Add minimal incremental test
1 parent f624fdf commit ad0ba2a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test-data/unit/check-enum.test

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,23 @@ Gb.a
347347
Hu.a
348348
Hb.a
349349
[out]
350+
351+
[case testEnumIncremental]
352+
import m
353+
reveal_type(m.E.a)
354+
reveal_type(m.F.b)
355+
[file m.py]
356+
from enum import Enum
357+
class E(Enum):
358+
a = 1
359+
b = 2
360+
F = Enum('F', 'a b')
361+
[rechecked]
362+
[stale]
363+
[out1]
364+
main:2: error: Revealed type is 'm.E'
365+
main:3: error: Revealed type is 'm.F'
366+
[out2]
367+
main:2: error: Revealed type is 'm.E'
368+
main:3: error: Revealed type is 'm.F'
369+

0 commit comments

Comments
 (0)