mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Test cleanup: remove old todo and duplicate test (#5198)
The todo_fail_specialization_written_after_use_is_poisoned.carbon has a similar test in impl/lookup/min_prelude/specialization_poison.carbon now.
This commit is contained in:
@@ -183,8 +183,6 @@ fn F() {
|
||||
// The specialization of `Z(C)` should match in preference to the blanket
|
||||
// impls of `Z(T)`. If a blanket impl is chosen, then `a` will have type `()`
|
||||
// which will fail to typecheck here when constructed from a `C` value.
|
||||
//
|
||||
// TODO: C(T) is C(()) so this should work?
|
||||
let a: C(()).(Z(()).X) = {} as C(());
|
||||
}
|
||||
|
||||
@@ -309,26 +307,6 @@ fn F() {
|
||||
let a: C(()).(Z.X) = {} as C(());
|
||||
}
|
||||
|
||||
// --- todo_fail_specialization_written_after_use_is_poisoned.carbon
|
||||
library "[[@TEST_NAME]]";
|
||||
|
||||
interface Z(T:! type) {
|
||||
let X:! type;
|
||||
}
|
||||
|
||||
class C {}
|
||||
|
||||
impl forall [T:! type] T as Z(T) where .X = () {}
|
||||
|
||||
fn F() {
|
||||
let a: C.(Z(C).X) = ();
|
||||
}
|
||||
|
||||
// TODO: This impl changes the result of a previous lookup. The previous lookup
|
||||
// should have created a poison value that this trips and thus generates a
|
||||
// diagnostic.
|
||||
impl C as Z(C) where .X = C {}
|
||||
|
||||
// --- fail_todo_final_specialization_before_generic_use_of_type_constant.carbon
|
||||
library "[[@TEST_NAME]]";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user