mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add a compile-time check that the condition of a CHECK is not constant. (#4628)
Inspired by #4624.
This commit is contained in:
@@ -1351,7 +1351,7 @@ auto TypeChecker::ArgumentDeduction::Deduce(Nonnull<const Value*> param,
|
||||
}
|
||||
case Value::Kind::MixinPseudoType:
|
||||
case Value::Kind::TypeOfMixinPseudoType:
|
||||
CARBON_CHECK(false, "Type expression must not contain Mixin types");
|
||||
CARBON_FATAL("Type expression must not contain Mixin types");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user