mita icon indicating copy to clipboard operation
mita copied to clipboard

mita

Results 70 mita issues
Sort by recently updated
recently updated
newest added

One of the first things I wanted to try is: ``` every button_one.pressed { let myList = [1, 2, 3]; for (var i in myList) { print(`${i}`); } } ```...

The following code produces several issues while linking. Removing the `&array` "fixes" the issue. ``` package main; import platforms.xdk110; struct SensorMessage { var accX : int32; var accY : int32;...

Bug

The following code can not resolve `addr`: ``` package test; import platforms.xdk110; let addr = "localhost"; setup endpoint: WLAN { psk = addr; ssid = addr; } ``` While in...

Usability

The following code doesn't need unraveling, but is unraveled: ``` package foo; import platforms.xdk110; fn test(): int32 { return 1; } fn asdf() { var x = 0; x =...

Usability

The following is legal Mita: ```typescript package bar; import platforms.xdk110; every 100 milliseconds { var x = "asdf"; if(x == "asdf") { /*...*/ } } ``` The produced code doesn't...

Bug

If the array generator can't infer the size of the slice bounds, it doesn't always generate a buffer of the correct length (or at all): ``` fn foo(x: uint32, y:...

Bug

Initializing with literals generates buggy code, initializing with vars doesn't copy the array.

Bug

Mita: ``` fn foo(): int32? { return some(1); } fn bar() { let x1 = foo(); } ``` C: ```c Retcode_T foo(optional_int32_t* _result) { Retcode_T exception = NO_EXCEPTION; optional_int32_t result1155795087...

Bug

``` every 10 minutes { true; } ``` Should be validated "The left-hand side of an assignment must be a variable"

Prio.Medium