BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Default argument values not always checked for type

Description

@Test public void testDefaultValueTypeCheck() { instance.executeSource( """ import ortus.boxlang.runtime.scopes.Key; function foo( string param1=Key.of("brad") ) { return param1 } result = foo(null) """, context ); assertThat( variables.get( result ) ).isEqualTo( "brad" ); assertThat( variables.get( result ) ).isInstanceOf( String.class ); }

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created June 25, 2024 at 5:07 PM
Updated June 25, 2024 at 6:48 PM
Resolved June 25, 2024 at 5:40 PM

Flag notifications