InferArgsLengthMismatch.java revision 688
c20e7e3e6b1dd174c025487ceef713f07d77ba4bneil_a_wilson/*
c20e7e3e6b1dd174c025487ceef713f07d77ba4bneil_a_wilson * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
c20e7e3e6b1dd174c025487ceef713f07d77ba4bneil_a_wilson * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c20e7e3e6b1dd174c025487ceef713f07d77ba4bneil_a_wilson *
e4ff5e7757146c139160c3e78f4ac5ee1584dde5coulbeck * This code is free software; you can redistribute it and/or modify it
e4ff5e7757146c139160c3e78f4ac5ee1584dde5coulbeck * under the terms of the GNU General Public License version 2 only, as
267e43ad6455f631dfdb9e552909a137b9e4f087boli * published by the Free Software Foundation.
267e43ad6455f631dfdb9e552909a137b9e4f087boli *
267e43ad6455f631dfdb9e552909a137b9e4f087boli * This code is distributed in the hope that it will be useful, but WITHOUT
78ebdb0fc9f2a940f8385300ee5b4952d225b899boli * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a89f073e2246d8dc081ec584f19bbcd813b9a44cneil_a_wilson * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a89f073e2246d8dc081ec584f19bbcd813b9a44cneil_a_wilson * version 2 for more details (a copy is included in the LICENSE file that
a89f073e2246d8dc081ec584f19bbcd813b9a44cneil_a_wilson * accompanied this code).
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson *
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift * You should have received a copy of the GNU General Public License version
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift * 2 along with this work; if not, write to the Free Software Foundation,
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift *
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson * or visit www.oracle.com if you need additional information or have any
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson * questions.
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson */
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift// key: compiler.err.cant.apply.symbol.1
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson// key: compiler.misc.infer.arg.length.mismatch
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilsonclass InferArgsLengthMismatch {
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson <X extends Number> void m(X x1, X x2) {}
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift { this.m(1); }
987a50dfe113ed235d28716ff080b59e8873655cmatthew_swift}
89bb69f651eab9fd3f4091800e226342444f2fb2neil_a_wilson