29 lines · 306 B · Text
RawDownload
use std trait frobable @a =	frob	: (val : @a -> void);; impl frobable int# =	frob = {val		std.put("intptr,")	};; impl frobable char# =	frob = {val		std.put("charptr\n")	};; generic foo = {x : @a :: frobable @a	frob(x)} const main = {	var a = (123 : int)	var b = 'c'	foo(&a)	foo(&b)} 

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t