Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Error on LogEntry.cs #164

Closed
kimsama opened this issue Aug 26, 2016 · 1 comment
Closed

Error on LogEntry.cs #164

kimsama opened this issue Aug 26, 2016 · 1 comment

Comments

@kimsama
Copy link

kimsama commented Aug 26, 2016

Got an error on LogEntry.cs

UniRx\Scripts\UnityEngineBridge\Diagnostics\LogEntry.cs(30,13,30,17): error CS0188: The 'this' object cannot be used before all of its fields are assigned to

Fixed with the change by adding this() like as:

        public LogEntry(string loggerName, LogType logType, 
                                 DateTime timestamp, string message, 
                                 UnityEngine.Object context = null, Exception exception = null, 
                                 string stackTrace = null, object state = null) : this() // To fix the error!!
        {
            this.LoggerName = loggerName;
            this.LogType = logType;
            this.Timestamp = timestamp;
            this.Message = message;
            this.Context = context;
            this.Exception = exception;
            this.StackTrace = stackTrace;
            this.State = state;
        }

I'm using Unity 5.4.5p7 on Windows.

@neuecc
Copy link
Owner

neuecc commented Aug 28, 2016

Thank you.
okay, I'll add this().

neuecc added a commit that referenced this issue Sep 4, 2016
@neuecc neuecc closed this as completed Sep 4, 2016
cloudchui pushed a commit to CloudcadeSF/UniRx that referenced this issue Jul 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants