Add the support of type assert expressions in type parsing which allows to process type assertions in the global scope. Fixes #1543.
12 lines
102 B
Go
12 lines
102 B
Go
package main
|
|
|
|
var cc interface{} = 2
|
|
var dd = cc.(int)
|
|
|
|
func main() {
|
|
println(dd)
|
|
}
|
|
|
|
// Output:
|
|
// 2
|