Last active
August 29, 2015 13:57
-
-
Save takikawa/9676911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?hh | |
trait Foo { | |
abstract protected function foo() : int; | |
public function getVal(): int { | |
return $this->foo(); | |
} | |
} | |
class MyClass { | |
use Foo; | |
public function foo() : string { | |
return "foo"; | |
} | |
} | |
$foo = 1 + new MyClass().foo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment