blob: ab3bfcdfe7c69b2e7382341d16cd241a80d1bd17 [file] [log] [blame]
Russ Coxa7d8b352013-09-09 12:00:16 -04001// compile
2
3// golang.org/issue/6298.
4// Used to cause "internal error: typename ideal bool"
5
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07006// Copyright 2013 The Go Authors. All rights reserved.
Russ Coxa7d8b352013-09-09 12:00:16 -04007// Use of this source code is governed by a BSD-style
8// license that can be found in the LICENSE file.
9
10package main
11
12func main() {
13 var x interface{} = "abc"[0] == 'a'
14 _ = x
15}