Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed Sep 20, 2024
1 parent 604cf5b commit 9957e50
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sway-lsp/tests/fixtures/inlay_hints/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,18 @@ const CONSTANT: u64 = 42;
enum MyEnum {
A: u64,
}

struct MyStruct {
a: u64,
}

fn my_function(foo: u64, bar: u64, long_argument_name: u64) -> u64 {
foo + bar + long_argument_name
}

fn identity<T>(x: T) -> T {
x
}

fn two_generics<A, B>(_a: A, b: B) -> B {
b
}

fn three_generics<A, B, C>(a: A, b: B, _c: C) -> B {
let _a: A = a;
b
Expand All @@ -35,7 +30,7 @@ fn main() {
let _z = my_function(foo, bar, 3);
let long_argument_name = 3;
let _w = my_function(foo, bar, long_argument_name);

let _function_call = identity(my_function(1, bar, 3));
let _a: bool = identity(true);
let _b: u32 = identity(10u32);
let _c: u64 = identity(42);
Expand All @@ -46,16 +41,11 @@ fn main() {
let _tuple = identity((1, 2, 3));
let _array = identity([1, 2, 3]);
let _enum = identity(MyEnum::A(1));

let s = MyStruct { a: 1 };
let _struct_field_access = identity(s.a);

let t = (0, 1, 9);
let _tuple_elem_access = identity(t.2);

let a = [1, 2, 3];
let _array_index = identity(a[1]);

let _function_call = identity(my_function(1, bar, 3));
}

0 comments on commit 9957e50

Please sign in to comment.