From 3623c7fc5966d5717e0b16e2a7c116c21753a4e2 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Sat, 4 Feb 2012 11:59:54 +0400 Subject: [PATCH] OverrideFunctionWithParamDefaultValue test in JetDiagnosticsTest --- .../tests/OverrideFunctionWithParamDefaultValue.jet | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 compiler/testData/diagnostics/tests/OverrideFunctionWithParamDefaultValue.jet diff --git a/compiler/testData/diagnostics/tests/OverrideFunctionWithParamDefaultValue.jet b/compiler/testData/diagnostics/tests/OverrideFunctionWithParamDefaultValue.jet new file mode 100644 index 00000000000..df495e555ff --- /dev/null +++ b/compiler/testData/diagnostics/tests/OverrideFunctionWithParamDefaultValue.jet @@ -0,0 +1,11 @@ +abstract class B() { + abstract fun foo2(arg: Int = 239) : Int +} + +class C() : B() { + override fun foo2(arg: Int) : Int = arg +} + +fun invokeIt() { + C().foo2() +}