By returning early in case of incomplete type in CFG, we avoid a panic, and let a chance to a new attempt after the missing type has been parsed. Fixes 763.
18 lines
119 B
Go
18 lines
119 B
Go
package main
|
|
|
|
type T1 t1
|
|
|
|
type t1 int8
|
|
|
|
const (
|
|
P2 T1 = 2
|
|
P3 T1 = 3
|
|
)
|
|
|
|
func main() {
|
|
println(P3)
|
|
}
|
|
|
|
// Output:
|
|
// 3
|