Fix bug with enforcing purity in constant initializers
[hiphop-php.git] / hphp / hack / test / typecheck / map_non_static.php.exp
blob96154875628a3c3b1c6eb91e243797b7ce5d487e
1 File "map_non_static.php", line 8, characters 45-49:
2 Invalid expression in constant initializer (Parsing[1002])
3 File "map_non_static.php", line 8, characters 45-49:
4 This call is not allowed because its coeffects are incompatible with the context (Typing[4390])
5 File "map_non_static.php", line 8, characters 34-65:
6 From this declaration, the context of this function body provides the capability set {}
7 File "map_non_static.php", line 3, characters 10-12:
8 But the function being called requires the default capability set {AccessStaticVariable, Output, WriteProperty}
9 File "coeffect/contexts.hhi", line 28, characters 1-23:
10 Hack provides a list of supported contexts here