Skip to content
Snippets Groups Projects
Commit 1fd26aa8 authored by Martin Zagora's avatar Martin Zagora Committed by Marijn Haverbeke
Browse files

[javascript mode] Add test with complex type

parent d599d656
No related branches found
No related tags found
No related merge requests found
......@@ -324,6 +324,14 @@
"[keyword function] [def b][operator <][variable-3 IA] [keyword extends] [variable-3 object], [variable-3 IB] [keyword extends] [variable-3 object][operator >]() {}",
"[keyword function] [def c]() {}")
TS("typescript_complex_return_type",
"[keyword function] [def A]() {",
" [keyword return] [keyword this].[property property];",
"}",
"[keyword function] [def B](): [variable-3 Promise][operator <]{ [[ [variable key]: [variable-3 string] ]]: [variable-3 any] } [operator |] [atom null][operator >] {",
" [keyword return] [keyword this].[property property];",
"}")
var jsonld_mode = CodeMirror.getMode(
{indentUnit: 2},
{name: "javascript", jsonld: true}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment