Saturday, 25 February 2017

Type Safety




var METER = 55;

var METER = "This is String";

print(METER);


Error : ERROR at line 4, col 5: invalid redeclaration of 'METER'
var METER = "This is String";
    ^
NOTE at line 2, col 5: 'METER' previously declared here
var METER = 55;
    ^

No comments:

Post a Comment