mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			166 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			166 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
struct A {
 | 
						|
}
 | 
						|
A.metamethods.__getmethod = function(self,idx)
 | 
						|
    return tonumber(string.sub(idx,2,-1))
 | 
						|
end
 | 
						|
terra foo()
 | 
						|
    return A.f33 + A.b34
 | 
						|
end
 | 
						|
assert(67 == foo()) |