| // Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| package com.android.tools.r8.ir.desugar.annotations.version2; |
| |
| import com.android.tools.r8.ir.desugar.annotations.A; |
| import com.android.tools.r8.ir.desugar.annotations.CovariantReturnType; |
| |
| public class C extends B { |
| @CovariantReturnType(returnType = B.class, presentAfter = 25) |
| @CovariantReturnType(returnType = C.class, presentAfter = 28) |
| @Override |
| public A method() { |
| return new C(); |
| } |
| } |