mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 20:10:28 +00:00
Move value-category checking to compile time (#960)
This commit is contained in:
1 parent
3e188c8562
commit
be0c1e9da6
5 files changed
+94
-2
No files matched your search
@@ -357,8 +357,7 @@ void Interpreter::StepLvalue() {
|
||||
case ExpressionKind::StringLiteral:
|
||||
case ExpressionKind::StringTypeLiteral:
|
||||
case ExpressionKind::IntrinsicExpression:
|
||||
FATAL_RUNTIME_ERROR_NO_LINE()
|
||||
<< "Can't treat expression as lvalue: " << exp;
|
||||
FATAL() << "Can't treat expression as lvalue: " << exp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user