Sign in
go
/
website
/
80138e489bacf30d238a661d16924f59f8a26684
/
.
/
_content
/
blog
/
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
}