-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Manfred Touron <[email protected]>
- Loading branch information
Showing
60 changed files
with
209 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package main | ||
|
||
func main() { | ||
type foo struct { | ||
yolo string | ||
} | ||
type foo struct { | ||
yolo string | ||
} | ||
|
||
var foo int | ||
foo = 2 | ||
println(foo) | ||
var foo int | ||
foo = 2 | ||
println(foo) | ||
} | ||
|
||
// Error: | ||
// files/redeclaration0.go:8:6: foo redeclared in this block | ||
// previous declaration at files/redeclaration0.go:4:7 | ||
// files/redeclaration0.gno:8:7: foo redeclared in this block | ||
// previous declaration at files/redeclaration0.gno:4:8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package main | ||
|
||
func main() { | ||
var foo string | ||
var foo string | ||
|
||
var foo int | ||
foo = 2 | ||
println(foo) | ||
var foo int | ||
foo = 2 | ||
println(foo) | ||
} | ||
|
||
// Error: | ||
// files/redeclaration1.go:6:6: foo redeclared in this block | ||
// files/redeclaration1.gno:6:7: foo redeclared in this block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package main | ||
|
||
func main() { | ||
var foo struct { | ||
yolo string | ||
} | ||
var foo struct { | ||
yolo string | ||
} | ||
|
||
var foo int | ||
foo = 2 | ||
println(foo) | ||
var foo int | ||
foo = 2 | ||
println(foo) | ||
} | ||
|
||
// Error: | ||
// files/redeclaration2.go:8:6: foo redeclared in this block | ||
// previous declaration at files/redeclaration2.go:4:6 | ||
// files/redeclaration2.gno:8:7: foo redeclared in this block | ||
// previous declaration at files/redeclaration2.gno:4:7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package main | ||
|
||
func main() { | ||
var foo int | ||
foo = 2 | ||
var foo int | ||
foo = 2 | ||
|
||
type foo struct{} | ||
var bar foo | ||
println(bar) | ||
type foo struct{} | ||
var bar foo | ||
println(bar) | ||
} | ||
|
||
// Error: | ||
// files/redeclaration3.go:7:7: foo redeclared in this block | ||
// files/redeclaration3.gno:7:8: foo redeclared in this block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package main | ||
|
||
func main() { | ||
var foo struct { | ||
yolo string | ||
} | ||
var foo struct { | ||
yolo string | ||
} | ||
|
||
type foo struct{} | ||
var bar foo | ||
println(bar) | ||
type foo struct{} | ||
var bar foo | ||
println(bar) | ||
} | ||
|
||
// Error: | ||
// files/redeclaration4.go:8:7: foo redeclared in this block | ||
// files/redeclaration4.gno:8:8: foo redeclared in this block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package main | ||
|
||
func main() { | ||
type foo struct { | ||
yolo string | ||
} | ||
type foo struct { | ||
yolo string | ||
} | ||
|
||
type foo struct{} | ||
var bar foo | ||
println(bar) | ||
type foo struct{} | ||
var bar foo | ||
println(bar) | ||
} | ||
|
||
// Error: | ||
// files/redeclaration5.go:8:7: foo redeclared in this block | ||
// files/redeclaration5.gno:8:8: foo redeclared in this block |
Oops, something went wrong.