Properly localize require ancestors in Typing_subtype
[hiphop-php.git] / hphp / hack / test / typecheck / req_ancestor_with_generics.php
blobafae4a1a17316d3c619dd305b1c936869f7037f4
1 <?hh // strict
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 abstract class Expression<Tresult> {}
5 abstract class Evaluator<T, Texpression as Expression<T>> {}
7 class LiteralEvaluator<T, Texpression as ILiteralExpression<T>>
8 extends Evaluator<T, Texpression> {}
10 interface ILiteralExpression<TlitResult> {
11 require extends Expression<TlitResult>;