langtools/test/tools/javac/lambda/TargetType19.java
changeset 39589 0cbaed77814c
parent 14547 86d8d242b0c4
equal deleted inserted replaced
39588:a30039aaca6c 39589:0cbaed77814c
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    37         void f(List<? extends X> i);
    37         void f(List<? extends X> i);
    38     }
    38     }
    39 
    39 
    40     <Z> void call(SAM<? extends Z> s, Z z) {  }
    40     <Z> void call(SAM<? extends Z> s, Z z) {  }
    41 
    41 
    42    { call((List<? extends String> p) -> { }, 1); }
    42     { call((List<? extends String> p) -> { }, 1); }
    43 }
    43 }