adding missing exit for pattern variable in wrong context and a test case for it (#324)

This commit is contained in:
Jeremy G. Siek authored and GitHub committed 2021-03-02 12:51:03 -05:00
1 parent 9d0b48478f
commit b2c9203143
4 files changed
+21

No files matched your search

@@ -0,0 +1,8 @@
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
fn main() -> Int {
Int : x; // error
return 1;
}