Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / scientific.php
blob29b915ca00f8a81f0bdd2f7183579347d982297d
1 <?hh // partial
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 function f1(): float {
13 return 1.234e-10+1.234e-10;
16 function f2(): float {
17 return 1.234E-10-1.234e-10;
20 function f3(): float {
21 return 1.23e45-1.234e-10;
24 function f4(): float {
25 return +1.23e45-1.234e-10;
28 function f5(): float {
29 return -1.23e45-1.234e-10;
32 function f6(): float {
33 return +1.23+1.234e-10;
36 function f7(): float {
37 return -1.23-1.234e-10;
40 function f8(): int {
41 return +23-1;
44 function f9(): int {
45 return -23-1;