Sign in
go
/
blog
/
53068e16a1c95f8b58c24726a68dfbf867995d04
/
.
/
content
/
constants
/
string2.go
blob: 362b4841d0a985b95a085e165ec2d86b2c5da857 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
const typedHello string = "Hello, 世界"
func main() {
// START OMIT
type MyString string
var m MyString
m = typedHello
// Type error
fmt.Println(m)
// STOP OMIT
}