Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[red-knot] remove duplicate test from bad merge #11787

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions crates/red_knot/src/semantic/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,22 +626,4 @@ mod tests {

assert_public_type(&case, "a", "x", "Literal[C1] | Literal[C2] | Literal[C3]")
}

#[test]
fn ifexpr_nested() -> anyhow::Result<()> {
let case = create_test()?;

write_to_path(
&case,
"a.py",
"
class C1: pass
class C2: pass
class C3: pass
x = C1 if flag else C2 if flag2 else C3
",
)?;

assert_public_type(&case, "a", "x", "(Literal[C1] | Literal[C2] | Literal[C3])")
}
}
Loading