Menu
Home
Create new Paste
Log in
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
import std.stdio; import std.traits; int foo(int x) { return 0; } double foo(double x) { return 0.0; } double bar(double x) { return 0.0; } int bar(int x) { return 0; } void main() { static assert (is(int == ReturnType!foo)); static assert (is(double == ReturnType!bar)); }
Result:
Success
/
Return code: 0
Paste info
Author:
Guest
Views:
576
Private:
no
Expires:
Never
Uploaded:
13.06.15 2:29
Votes
:
0
Tweet
Compilation
Compiler:
DMD 2.079.1 ( 2.079.1 )
Pointer size:
m64
Actions
Download
Raw
×
Confirm
Are you sure you want to delete this paste?
There's no way back!
×
Confirm
Reason