3 // Copyright 2009 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.
7 // Test that basic operations on named types are valid
8 // and preserve the type.
24 func asString(String) {}
41 asBool(1 != 2) // ok now
42 asBool(i < j) // ok now
47 _, b = inter.(Map) // ok now
50 var minter interface {
53 _, b = minter.(Map) // ok now
57 asBool(bb) // ERROR "cannot use.*type bool.*as type Bool|cannot use bb"
61 asString(String(slice)) // ok