Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
why-does-passing-the-literal-3-choose-the-int-overload-and-not-the-short-o
SUBMITTED BY:
menamagice
DATE:
Aug. 9, 2017, 2:03 a.m.
FORMAT:
Text only
SIZE:
101 Bytes
Raw
Download
Tweet
HITS:
254
Go to comments
Report
3 has type int
For your function execution you need
short s = 3;
fun(s);
or
fun((short)3);
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus