Skip to content

Commit

Permalink
Fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
markwpearce committed Jan 29, 2024
1 parent 33d1b75 commit d3465c2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/files/BrsFile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3662,6 +3662,18 @@ describe('BrsFile', () => {
`);
});

it('transpiles typed arrays in return types to dynamic', () => {
testTranspile(`
function main() as integer[]
return []
end function
`, `
function main() as dynamic
return []
end function
`);
});

it('transpiles multi-dimension typed arrays to dynamic', () => {
testTranspile(`
sub main(param1 as float[][][])
Expand Down Expand Up @@ -3828,7 +3840,7 @@ describe('BrsFile', () => {
});

it('allows extends on classes', () => {
const file = program.setFile<BrsFile>('source/main.bs', `
program.setFile<BrsFile>('source/main.bs', `
class MyBase
url as string
end class
Expand Down

0 comments on commit d3465c2

Please sign in to comment.