mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 09:10:11 +01:00
This case previously crashed. Trying to handle allow_implicit_conversion better per discussion; I've split out the for loop for each path because I think it's now clearer this way.
19 lines
430 B
Plaintext
19 lines
430 B
Plaintext
// 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
|
|
//
|
|
// AUTOUPDATE
|
|
// RUN: %{explorer-run}
|
|
// RUN: %{explorer-run-trace}
|
|
// CHECK:STDOUT: result: 0
|
|
|
|
package ExplorerTest api;
|
|
|
|
interface Interface {}
|
|
impl {} as Interface {}
|
|
impl {.x: i32} as Interface {}
|
|
|
|
fn Main() -> i32 {
|
|
return 0;
|
|
}
|