Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
c7d30bce
Commit
c7d30bce
authored
May 12, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
describe each interface test
R=r DELTA=20 (20 added, 0 deleted, 0 changed) OCL=28707 CL=28716
parent
28516d4c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
0 deletions
+20
-0
interface1.go
test/interface1.go
+2
-0
interface10.go
test/interface10.go
+2
-0
interface2.go
test/interface2.go
+2
-0
interface3.go
test/interface3.go
+2
-0
interface5.go
test/interface5.go
+2
-0
interface6.go
test/interface6.go
+2
-0
interface7.go
test/interface7.go
+3
-0
interface8.go
test/interface8.go
+3
-0
interface9.go
test/interface9.go
+2
-0
No files found.
test/interface1.go
View file @
c7d30bce
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Check that interface{M()} = *interface{M()} produces a compiler error.
package
main
type
Inst
interface
{
...
...
test/interface10.go
View file @
c7d30bce
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Check methods derived from embedded interface and *interface values.
package
main
import
"os"
...
...
test/interface2.go
View file @
c7d30bce
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Check that interface conversion fails when method is missing.
package
main
type
S
struct
...
...
test/interface3.go
View file @
c7d30bce
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Check methods with different return types.
package
main
type
S
struct
{
a
int
}
...
...
test/interface5.go
View file @
c7d30bce
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Static error messages about interface conversions.
package
main
type
T
struct
{
a
int
}
...
...
test/interface6.go
View file @
c7d30bce
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Interface values containing structures.
package
main
import
"os"
...
...
test/interface7.go
View file @
c7d30bce
...
...
@@ -4,6 +4,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Interface comparisons using types hidden
// inside reflected-on structs.
package
main
import
"reflect"
...
...
test/interface8.go
View file @
c7d30bce
...
...
@@ -4,6 +4,9 @@
// $G $F.go && $L $F.$A && ./$A.out
// Implicit methods for embedded types.
// Mixed pointer and non-pointer receivers.
package
main
type
T
int
...
...
test/interface9.go
View file @
c7d30bce
...
...
@@ -4,6 +4,8 @@
// errchk $G $F.go
// Error messages about missing implicit methods.
package
main
type
T
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment