You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What went wrong?
Auto mock generates wrong mocks when comments are placed before function definition.
Similar or dependent issues:
No
Additional Data
Example code/file:
' Calls given function with given number of arguments in a specific context. Compare apply in JavaScript.' @example
' function adder(arg1, arg2, arg3, arg4) as Integer' return m.base + arg1 + arg2 + arg3 + arg4' end function' funcionCall(adder, [1, 2, 3, 4], { base: 1 })' @param {Function|Invalid} func' @param {Dynamic[]} [args=[]]' @param {Object} [context=Invalid]' @returns {Dynamic}functionfunctionCall(funcasDynamic, args= [] asObject, context=InvalidasObject) asDynamic
The aut mock will generate function adder(arg1, arg2, arg3, arg4) as Integer instead of function functionCall(func as Dynamic, args = [] as Object, context = Invalid as Object) as Dynamic
The text was updated successfully, but these errors were encountered:
This is a Bug Report
Description
Auto mock generates wrong mocks when comments are placed before function definition.
Similar or dependent issues:
Additional Data
Example code/file:
The aut mock will generate
function adder(arg1, arg2, arg3, arg4) as Integer
instead offunction functionCall(func as Dynamic, args = [] as Object, context = Invalid as Object) as Dynamic
The text was updated successfully, but these errors were encountered: