Ticket Created
over 3 years ago

CIQQA-423

Compiler Bug: Background.exit() cannot be Array

When trying to pass an Array of Numbers to Background.exit()

Background.exit([1,2,3] as Array<Number>);

I get the following error:

Invalid 'Array<Number>' passed as parameter 1 of type
'PolyType<Null or Array<Application.PropertyValueType> or Boolean or Char or Dictionary<Boolean or Char or Double or Float or Long or Number or String,Application.PropertyValueType> or Double or Float or Long or Number or String or WatchUi.BitmapResource>'

But, the PolyType allows Array<Application.PropertyValueType> and PropertyValueType can be a Number.

Sample code here:

forums.garmin.com/.../a-very-simple-wf-with-a-background-that-talks-ble-to-the-thingy52

Parents
  • Is this already fixed in the meantime? It's such a pity to not be able to work with the monkey types for already so long because of this bug.

    If it is fixed, how should I be able to send a dictionary in the Background.exit()?

    I even have this same issue in the SDK 4.1.0 preview. 

Comment
  • Is this already fixed in the meantime? It's such a pity to not be able to work with the monkey types for already so long because of this bug.

    If it is fixed, how should I be able to send a dictionary in the Background.exit()?

    I even have this same issue in the SDK 4.1.0 preview. 

Children
No Data