Skip to content

Commit

Permalink
fix #1195
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed May 19, 2022
1 parent 0601e2e commit cbc2b7e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cl/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,23 @@ var x string = c.Str()
`)
}

func TestMyIntInc_Issue1195(t *testing.T) {
gopClTest(t, `
type MyInt int
var c MyInt
c++
`, `package main
type MyInt int
var c MyInt
func main() {
c++
}
`)
}

func TestAutoPropMixedName_Issue1194(t *testing.T) {
gopClTest(t, `
type Point struct {
Expand Down

0 comments on commit cbc2b7e

Please sign in to comment.