mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/shader: add a test for type shadowing
This commit is contained in:
parent
7f91a681e3
commit
1703297f37
@ -2389,6 +2389,7 @@ func TestTypeRedeclaration(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{stmt: "type Foo int; type Foo int", err: true},
|
{stmt: "type Foo int; type Foo int", err: true},
|
||||||
{stmt: "type Foo int; type Foo float", err: true},
|
{stmt: "type Foo int; type Foo float", err: true},
|
||||||
|
{stmt: "type Foo int; { type Foo int }", err: false},
|
||||||
{stmt: "type Foo int; type Bar int", err: false},
|
{stmt: "type Foo int; type Bar int", err: false},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user