This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ("lib.class") | |
local TableFuncs = {} | |
---@generic Key,Value,Result | |
---@param dict table<Key, Value> | |
---@param mappingFunction fun(key:Key, value:Value):Result | |
---@return table<Key,Result> | |
function TableFuncs.mapPairs(dict, mappingFunction) | |
---@type table<Key, Result> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In file: /Users/dcorbin/projects/TTS/lib/utils/tableEquality.lua | |
java.lang.StackOverflowError | |
at com.tang.intellij.lua.ty.DeclarationsKt.resolveParamType(Declarations.kt:227) | |
at com.tang.intellij.lua.ty.DeclarationsKt.infer(Declarations.kt:112) | |
at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:41) | |
at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:25) | |
at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:33) | |
at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:225) | |
at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:35) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- The concern is on line 35 | |
---@class Person | |
---@field name string | |
---@field age number | |
---@field init fun(name: string, age:number) | |
---@overload fun(name:string, age:number): Person | |
---@param self Person | |
---@param name string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo() | |
var1 = 'junk' | |
end | |
function foo2() | |
print (var1) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@class Person | |
---@field name string | |
---@field age number | |
---@overload fun(name:string, age: number):Person | |
---@param self Person | |
---@param name string | |
---@param age number | |
---@return Person | |
local function constructor(self, name, age) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@class ClassB | |
---@overload fun() : ClassB | |
local ClassB = class(function(self) | |
return self | |
end) | |
---@param container tts__Container | |
---@return tts__Object[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@alias constructor fun(self: table, ...) | |
---@overload fun(init: constructor): table | |
function class(base, init) | |
... | |
end | |
HZone = class(function(self, center, offset, options) | |
local function dropGuardConstructor(self, requiredBsgType, exploder, rejecter, discardDistributor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Mod1 = require("bug/mod1") | |
function onLoad() | |
Mod1.gonnaFail() | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am dcorbin on github. | |
* I am dcorbin (https://keybase.io/dcorbin) on keybase. | |
* I have a public key whose fingerprint is DAE4 E4E1 B48C 046D 292F 8EB8 AEC4 E8F6 8154 CF8B | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[dcorbin@puppet-dev1 puppet]$ mco puppet status -F foo=bar | |
* [ ============================================================> ] 1 / 1 | |
some-host-name.foobar.com: Currently stopped; last completed run 59 minutes 57 seconds ago | |
Summary of Applying: | |
false = 1 |