mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-27 20:40:10 +01:00
This implements p7016 for tree_sitter. It also updates the build and source file to allow this to build successfully and documents how to successfully run these tests with Bazel given that it is fundamentally not hermetic. Assisted-by: Antigravity with Gemini
12 lines
345 B
Plaintext
12 lines
345 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
|
|
|
|
class Point {
|
|
var x: i32;
|
|
|
|
fn GetX(self: Point) -> i32 { return self.x; }
|
|
fn GetY(self) -> i32 { return 0; }
|
|
fn SetX(ref self, new_x: i32) {}
|
|
}
|