File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed 
test/clojure/test_clojure Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 244244                          (if  (instance?  clojure.lang.Symbol tag)
245245                            (if  (clojure.lang.Util/equiv  (.indexOf  (.getName  tag) " ."  ) -1 )
246246                              (if  (clojure.lang.Util/equals  nil  (clojure.lang.Compiler$HostExpr/maybeSpecialTag  tag))
247-                                 (let  [t (.getName  (clojure.lang.Compiler$HostExpr/maybeClass  tag false ))
248-                                       resolvedtag (clojure.lang.Symbol/intern  t)]
249-                                   (with-meta  argvec (assoc  m :tag  resolvedtag)))
247+                                 (let  [c (clojure.lang.Compiler$HostExpr/maybeClass  tag false )]
248+                                   (if  c
249+                                     (with-meta  argvec (assoc  m :tag  (clojure.lang.Symbol/intern  (.getName  c))))
250+                                     argvec))
250251                                argvec)
251252                              argvec)
252253                            argvec)))]
Original file line number Diff line number Diff line change 145145    (is  (=  'java.lang.String (->  arglists first meta :tag )))
146146    (is  (=  'java.lang.Integer (->  arglists second meta :tag )))))
147147
148+ (deftest  CLJ-1232-return-type-not-imported 
149+   (is  (thrown-with-msg?  Compiler$CompilerException #"Unable to resolve classname: Closeable" 
150+                         (eval  '(defn  a ^Closeable []))))
151+   (is  (thrown-with-msg?  Compiler$CompilerException #"Unable to resolve classname: Closeable" 
152+                         (eval  '(defn  a (^Closeable  []))))))
153+ 
148154(defn  ^String hinting-conflict  ^Integer [])
149155
150156(deftest  calls-use-arg-vector-hint 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments