AGS Awards votes close at 13:59 BST on Wednesday 07 March 2018. You've already voted, so you've got 12 days and 0 hours left to wait before voting closes!


AGS Editor

Further development of AGS Editor

Bug Issue: Confusing error text for incorrectly typed dynamic array return value

Pages: [1]

Crimson Wizard

  • AGSer
  • Posts: 7,861
« on: 27 Jul 2015, 17:40 »
Example:
Code: Adventure Game Studio
  1. DynamicSprite[] Func()
  2. {
  3.   DynamicSprite *r[] = new DynamicSprite[10];
  4.   return r;
  5. }
  6.  

This code produces error message:
Quote
Can not convert 'DynamicSprite[]' to 'DynamicSprite[]'

Expected error message:
Quote
Can not convert 'DynamicSprite*[]' to 'DynamicSprite[]'

On a side note, "DynamicSprite[]" type in the function declaration should cause error on its own, because managed types are only allowed to be referenced by pointers.

sonneveld

  • AGSer
  • Posts: 72
« Reply #1 on: 05 Sep 2015, 05:16 »
Error message fixed in https://github.com/adventuregamestudio/ags/pull/272 (including side note)
« Last Edit: 09 Sep 2015, 00:28 by sonneveld »

Issue updated by Crimson Wizard
« Reply #2 on: 21 Aug 2015, 12:49 »
  • Version changed from Adventure Game Studio 3.3, Adventure Game Studio 3.4 to AGS 3.3.5

Issue updated by Crimson Wizard
« Reply #3 on: 25 Jan 2016, 14:48 »
  • Fixed Version changed from (none) to AGS 3.3.5
  • Status changed from New to Resolved

Issue updated by Crimson Wizard
« Reply #4 on: 21 Jan 2018, 07:21 »
  • Status changed from Resolved to Closed

Pages: [1]

Issue Details

  • Reported
    27 Jul 2015, 17:40
  • Updated
    21 Jan 2018, 07:21
  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    AGS 3.3.5
  • Fixed in
    AGS 3.3.5
  • Assigned to
    (none)
  • Category
    Script Compiler

Tags



Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011