Files
carbon-lang/explorer/testdata/mixin/fail_mix_in_impl.carbon
T
2023-06-15 08:42:14 -07:00

26 lines
530 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
package ExplorerTest api;
__mixin Operations {
fn Square[self: Self](x:i32) -> i32{
return x * x;
}
}
interface A {
fn F();
}
impl i32 as A {
// CHECK:STDERR: SYNTAX ERROR: fail_mix_in_impl.carbon:[[@LINE+1]]: syntax error, unexpected MIX
__mix Operations;
fn F() {}
}
fn Main() -> i32 { return 0; }