WhereFreshTvar.java revision 3643:589ff4d43428
11553Srgrimes/* 21553Srgrimes * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. 31553Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 41553Srgrimes * 51553Srgrimes * This code is free software; you can redistribute it and/or modify it 61553Srgrimes * under the terms of the GNU General Public License version 2 only, as 71553Srgrimes * published by the Free Software Foundation. 81553Srgrimes * 91553Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 101553Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 111553Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 121553Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 131553Srgrimes * accompanied this code). 141553Srgrimes * 151553Srgrimes * You should have received a copy of the GNU General Public License version 161553Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 171553Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 181553Srgrimes * 191553Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 201553Srgrimes * or visit www.oracle.com if you need additional information or have any 211553Srgrimes * questions. 221553Srgrimes */ 231553Srgrimes 241553Srgrimes// key: compiler.misc.where.fresh.typevar 251553Srgrimes// key: compiler.misc.where.description.typevar 261553Srgrimes// key: compiler.err.prob.found.req 271553Srgrimes// key: compiler.misc.inconvertible.types 281553Srgrimes// options: --diags:formatterOptions=where,simpleNames 291553Srgrimes// run: simple 301553Srgrimes 311553Srgrimesimport java.util.*; 321553Srgrimes 3331492Swollmanclass WhereFreshTvar { 3450479Speter <T extends List<T>> T m() {} 351553Srgrimes 361553Srgrimes { Object o = (List<String>)m(); } 371553Srgrimes} 381553Srgrimes