Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for dop (0.06 sec)

  1. test/ken/intervar.go

    // Test interface assignment.
    
    package main
    
    type	Iputs	interface {
    	puts	(s string) string;
    }
    
    // ---------
    
    type	Print	struct {
    	whoami	int;
    	put	Iputs;
    }
    
    func (p *Print) dop() string {
    	r := " print " + string(p.whoami + '0')
    	return r + p.put.puts("abc");
    }
    
    // ---------
    
    type	Bio	struct {
    	whoami	int;
    	put	Iputs;
    }
    
    func (b *Bio) puts(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 1010 bytes
    - Viewed (0)
Back to top