Skip to content

Commit 9e00839

Browse files
committed
Add a test case for TODO
1 parent 5363f76 commit 9e00839

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyrefly/lib/test/class_subtyping.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,17 @@ class E(C, D): # E: Field `x` has inconsistent types inherited from multiple bas
310310
pass
311311
"#,
312312
);
313+
314+
testcase!(
315+
bug = "This is currently not handled",
316+
test_multiple_inheritance_incompatible_methods,
317+
r#"
318+
class Foo:
319+
def foo(self) -> int: ...
320+
class Bar:
321+
def foo(self) -> str: ...
322+
323+
class Both(Foo, Bar): # Expect error here
324+
...
325+
"#,
326+
);

0 commit comments

Comments
 (0)