Anthony Martin | 564a1f3 | 2012-02-29 13:55:50 -0800 | [diff] [blame] | 1 | // compile |
| 2 | |
| 3 | // Copyright 2012 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
Brad Fitzpatrick | 2ae7737 | 2015-07-10 17:17:11 -0600 | [diff] [blame] | 7 | // https://golang.org/issue/3119 |
Anthony Martin | 564a1f3 | 2012-02-29 13:55:50 -0800 | [diff] [blame] | 8 | |
| 9 | package main |
| 10 | |
| 11 | import "fmt" |
| 12 | |
| 13 | func main() { |
| 14 | s := "hello" |
| 15 | fmt.Println(s == "") |
| 16 | fmt.Println(s + "world" == "world") |
| 17 | } |