mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			148 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			148 B
		
	
	
	
		
			Perl
		
	
	
	
	
	
local x = setmetatable({a = 4}, { __toterraexpression = function(self) return self.a  end})
 | 
						|
 | 
						|
 | 
						|
local terra foo()
 | 
						|
    return x
 | 
						|
end
 | 
						|
 | 
						|
assert(foo() == 4) |